package com.kili.file.common;

/**
 * 常量
 *
 * @author fenny
 * @since 2019/07/25
 */
public interface IConstants {

    //AsyncTaskConst

    int CORE_POOL_SIZE = Runtime.getRuntime().availableProcessors() * 10;

    int MAX_POOL_SIZE = Runtime.getRuntime().availableProcessors() * 15;

    int KEEP_ALIVE_TIME = 60;

    int QUEUE_CAPACITY = 20;

    long TASK_TIME_OUT = 10 * 1000;

    int AWAIT_TERMINATION_SECONDS = 10;

    String TASK_NAME_PREFIX = "fileUploadTask-";

    String FILTER_URI = "/v1.0/fileUpload";

    //AsyncTaskConst


    //picture upload service

    String PICTURE_UPLOAD_SERVICE = "http://kili-global-picture/upload";

    //picture upload service

    //StorageStrategyConst

    String STORAGE_MODE = "storage_mode";

    String LOCAL_MODE = "local";

    String OSS_CLOUD_MODE = "oss_cloud";

    String FILE_TIME_PATH = "yyyyMMddHHmmss";

    String FILE_NAME_TIME_SUFFIX = "yyyy/MM/dd/";

    String FILE = "file";

    String LOCAL_STORAGE_MAPPING_PATH = "/tmp";

    String SLASH = "/";

    String HORIZONTAL = "-";

    //StorageStrategyConst
}
